Passed
Push — master ( acc7e3...0bc783 )
by
unknown
02:02
created

UserSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A run 0 5 1
1
import { Seeder } from '@concepta/typeorm-seeding';
2
import { UserFactory, JohnFactory } from '../Factories/UserFactory';
3
4
export class UserSeeder extends Seeder {
5
  async run() {
6
    const userFactory = this.factory(UserFactory);
7
    const johnFactory = this.factory(JohnFactory);
8
    await johnFactory.create();
9
    await userFactory.createMany(5);
10
  }
11
}
12